<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class StaffDimensionalityInspectionReportsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
		$reports = [
			[
				'company_id' => 1,
				'project_id' => 1,
				'user_id' => 1,
				'schedule_id' => 1,
				'line_id' => 1,
				'user_name' => 'George',
				'circles_count' => 3,
				'circles_inspected' => 3,
				'circles_uninspected' => 0,
				'circles_rate' => 100.00,
				'nodes_count' => 81,
				'nodes_inspected' => 81,
				'nodes_uninspected' => 0,
				'nodes_rate' => 100.00,
				'nodes_punctuality' => 98,
				'nodes_errors' => 3,
				'date' => '2018-05-01',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			],[
				'company_id' => 1,
				'project_id' => 2,
				'user_id' => 2,
				'schedule_id' => 2,
				'line_id' => 2,
				'user_name' => 'Kevin',
				'circles_count' => 3,
				'circles_inspected' => 3,
				'circles_uninspected' => 0,
				'circles_rate' => 100.00,
				'nodes_count' => 81,
				'nodes_inspected' => 81,
				'nodes_uninspected' => 0,
				'nodes_rate' => 100.00,
				'nodes_punctuality' => 98,
				'nodes_errors' => 3,
				'date' => '2018-05-01',
				'created_at' => date('Y-m-d H:i:s'),
				'updated_at' => date('Y-m-d H:i:s')
			]
		];

		DB::table('staff_dimensionality_inspection_reports')->insert($reports);
    }
}
